import axios from 'axios'
// import {
//   ElNotification
// } from 'element-plus'
import qs from 'qs';
// import { useRouter } from 'vue-router'

// const router = useRouter()

// 创建一个axios实例
const applicationJson = axios.create({
  // 根据不同的环境设置baseURL，最终发送请求时的URL为: baseURL + 发送请求时写的URL
  baseURL: "http://localhost:8100",
  headers: {
    "Content-Type": "application/json"
  },
})

applicationJson.defaults.headers.common["Authorization"] = sessionStorage.getItem('Authorization');



export default applicationJson